﻿using UnityEngine;
using UnityEditor;
using PureMVC.Patterns;
using PureMVC.Interfaces;
using OrderSystem;

public class WaiterGetOrderFromClientCommand : SimpleCommand
{
    public override void Execute(INotification notification)
    {
        base.Execute(notification);
        
        SendNotification(ClientEvent.WAITER_SEND_ORDER_TO_CLIENT, notification.Body);
        SendNotification(OrderSystemEvent.WAITER_SEND_ORDER_TO_COOK, notification.Body);

        //通知完厨师做菜，自己进入休息状态.
        SendNotification(OrderSystemEvent.UPDATE_WAIT_SEND_FOOD,notification.Body);
    }
}